/**@description 页面的搜索面板字段配置 */

import { DICT_TYPE, getIntDictOptions } from "@/utils/dict";

// export interface Field{

// }

const searchFields = [
    {
        label: "字典名称",
        name: "dictName",

    },
    {
        label: "字典类型",
        name: "dictType",
        TYPE: "Select",
        collect: true,
        inputProps: {
            options: [
                {
                    label: "测试",
                    value: "test"
                }
            ]
        }
    },
    {
        label: "状态",
        name: "status",
        TYPE: "Select",
        collect: true,
        inputProps: {
            options: getIntDictOptions(DICT_TYPE.COMMON_STATUS)
        }
    },
    {
        label: "创建时间",
        name: "createDate",
        TYPE: "RangePicker",
        collect: true,
        parseFields: ["startDate", "endDate"]
    },
    // {
    //     label: "开始时间",
    //     name: "startDate",
    //     hidden: true,
    //     TYPE: "DatePicker",
    //     dependFields: "createDate",//依赖字段
    //     dependIndex: 0
    // },
    // {
    //     label: "结束时间",
    //     name: "endDate",
    //     TYPE: "DatePicker",
    //     dependFields: "createDate",//依赖字段
    //     hidden: true,
    //     dependIndex: 1
    // }
]
export default searchFields;